
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildDungeonboxCfg : public ManualSingleton <GuildDungeonboxCfg>
{
	friend ManualSingleton <GuildDungeonboxCfg>;
public:
	GuildDungeonboxCfg();
	~GuildDungeonboxCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildDungeonboxCfgInfo *GetGuildDungeonboxCfgInfo(int32_t dungeonboxId);
	const GuildDungeonboxCfgMap *GetGuildDungeonboxCfgMap() { return &m_GuildDungeonboxCfgMap; }
private:
	GuildDungeonboxCfgMap m_GuildDungeonboxCfgMap;
};

#define  g_MakeGuildDungeonboxCfgTable() (GuildDungeonboxCfg::Instance())
#define  g_GetGuildDungeonboxCfgTable() (GuildDungeonboxCfg::GetInstance())
#define  g_DelGuildDungeonboxCfgTable() (GuildDungeonboxCfg::Destroy())